package cisdi.mes.sm.rm.domain;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import cisdi.mes.utils.base.CustomDateSerializer;

import java.util.Date;


/**
 * The persistent class for the SM_RM_MEASURE_DOC database table.
 * 
 */
/**
 * @author 小十七的双马尾
 *
 */
@Entity
@org.hibernate.annotations.Entity(dynamicInsert=true, dynamicUpdate=true)
@Table(name="SM_RM_MEASURE_DOC")
public class SmRmMeasureDoc implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="MEASURE_ID")
	private String measureId;
	@Column(name="ANA_DECIDE")
	private String anaDecide;
	
	@Column(name="SURPLUS_NET_WEIGHT")
	private Double surplusNetWeight;

	@Column(name="CART_NUMBER")
	private String cartNumber;


	@Column(name="DELIVERY_TYPE")
	private String deliveryType;

	@Column(name="GROSS_WEIGHT")
	private Double grossWeight;

	@Column(name="MATERIAL_DESC")
	private String materialDesc;

	@Column(name="MATERIAL_ID")
	private String materialId;

	@Column(name="NET_WEIGHT")
	private Double netWeight;

	@Column(name="PURCHASE_ORDER")
	private String purchaseOrder;


	@Column(name="QUALITY_BATCH")
	private String qualityBatch;



	@JsonSerialize(using = CustomDateSerializer.class)
    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="RECEIVE_TIME")
	private Date receiveTime;

	private String status;

	@Column(name="TARE_WEIGHT")
	private Double tareWeight;

   
	@JsonSerialize(using = CustomDateSerializer.class)
    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="TIME_STAMP")
	private Date timeStamp;


    public SmRmMeasureDoc() {
    }


	public String getMeasureId() {
		return measureId;
	}


	public void setMeasureId(String measureId) {
		this.measureId = measureId;
	}


	public String getAnaDecide() {
		return anaDecide;
	}


	public void setAnaDecide(String anaDecide) {
		this.anaDecide = anaDecide;
	}


	public Double getSurplusNetWeight() {
		return surplusNetWeight;
	}


	public void setSurplusNetWeight(Double surplusNetWeight) {
		this.surplusNetWeight = surplusNetWeight;
	}


	public String getCartNumber() {
		return cartNumber;
	}


	public void setCartNumber(String cartNumber) {
		this.cartNumber = cartNumber;
	}


	public String getDeliveryType() {
		return deliveryType;
	}


	public void setDeliveryType(String deliveryType) {
		this.deliveryType = deliveryType;
	}


	public Double getGrossWeight() {
		return grossWeight;
	}


	public void setGrossWeight(Double grossWeight) {
		this.grossWeight = grossWeight;
	}


	public String getMaterialDesc() {
		return materialDesc;
	}


	public void setMaterialDesc(String materialDesc) {
		this.materialDesc = materialDesc;
	}


	public String getMaterialId() {
		return materialId;
	}


	public void setMaterialId(String materialId) {
		this.materialId = materialId;
	}


	public Double getNetWeight() {
		return netWeight;
	}


	public void setNetWeight(Double netWeight) {
		this.netWeight = netWeight;
	}


	public String getPurchaseOrder() {
		return purchaseOrder;
	}


	public void setPurchaseOrder(String purchaseOrder) {
		this.purchaseOrder = purchaseOrder;
	}


	public String getQualityBatch() {
		return qualityBatch;
	}


	public void setQualityBatch(String qualityBatch) {
		this.qualityBatch = qualityBatch;
	}


	public Date getReceiveTime() {
		return receiveTime;
	}


	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}


	public Double getTareWeight() {
		return tareWeight;
	}


	public void setTareWeight(Double tareWeight) {
		this.tareWeight = tareWeight;
	}


	public Date getTimeStamp() {
		return timeStamp;
	}


	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}


}